#ifndef HISTORYFORM_1_H
#define HISTORYFORM_1_H

#include <QWidget>
#include "qcustomplot.h"
#include <QWheelEvent>



namespace Ui {
class HistoryForm_1;
}


class HistoryForm_1 : public QWidget
{
    Q_OBJECT

public:
    explicit HistoryForm_1(QWidget *parent = nullptr);
    ~HistoryForm_1();
    void closeEvent(QCloseEvent *e);
    void drawHighWaveformPlot();
    void drawLowWaveformPlot();
    void fft_demodule();

private slots:

protected:
   // void mouseWheel(QMouseEvent * event);



private:
    Ui::HistoryForm_1 *ui;

    QVector<double> x_1, y_1; //初始化向量x和y
    QCPGraph * curGraph_1;
    QCPTextElement *m_title_1;
    QVector<double> x_2, y_2; //初始化向量x和y
    QCPGraph * curGraph_2;
    QCPTextElement *m_title_2;

    QVector<double> x_3, y_3; //初始化向量x和y
    QCPGraph * curGraph_3;
    QCPTextElement *m_title_3;




    QVector<double> x_4, y_4; //初始化向量x和y
    QCPGraph * curGraph_4;
    QCPTextElement *m_title_4;

    QVector<double> x_5, y_5; //初始化向量x和y
    QCPGraph * curGraph_5;
    QCPTextElement *m_title_5;

    QVector<double> x_6, y_6; //初始化向量x和y
    QCPGraph * curGraph_6;
    QCPTextElement *m_title_6;


    QVector<double> x_7, y_7; //初始化向量x和y
    QCPGraph * curGraph_7;
    QCPTextElement *m_title_7;

    QVector<double> x_8, y_8; //初始化向量x和y
    QCPGraph * curGraph_8;
    QCPTextElement *m_title_8;

    int temp_farrow_len = 128;
};

#endif // HISTORYFORM_H_1
